package strategyDesignPattern

/**
 * 上下文，策略管理者
 */
class DealContext constructor(private var type: ShareChannel, private var deal: DealStrategy) {

    fun getDeal(): DealStrategy {
        return deal
    }

    fun options(type: ShareChannel): Boolean {
        return this.type == type
    }
}